package 策略设计模式;

public class Customer {
    private IPay pay;


    public void setPay(IPay pay)
    {
    	this.pay = pay;
    }
    public void pay(double money)
    {
    	pay.pay(money);
    }
}
